﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Crossroad.System.Admin.Model
{
    ///<summary>
    ///标签
    ///</summary>
    [SugarTable("admin_tag")]
    public partial class Tag : ModelContext
    {
        public Tag()
        {
            LoadDefVal();
        }

        public Tag(bool loadDef)
        {
            if (loadDef)
                LoadDefVal();
        }

        private void LoadDefVal()
        {
            this.sort = Convert.ToInt32("99");
            this.createTime = Convert.ToInt32("0");
            this.creatorId = Convert.ToInt32("0");
        }

        /// <summary>
        /// Desc:id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// Desc:标签名
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string name { get; set; }

        /// <summary>
        /// Desc:排序
        /// Default:99
        /// Nullable:True
        /// </summary>           
        public int? sort { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:0
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "create_time")]
        public int? createTime { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:0
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "creator_id")]
        public int? creatorId { get; set; }

    }
}
